#include "PosPointSource.hh"

PosPointSource::PosPointSource(): MyBasePos()
{
    m_Pos = G4ThreeVector(0., 0., 0.);
    m_MomDir = G4ThreeVector(0., 0., 0.);
}

void PosPointSource::Initialize(YAML::Node yamlNode)
{
    m_Pos = ConvertArrayToV3(yamlNode["Pos"]) * mm;
    m_MomDir = ConvertArrayToV3(yamlNode["MomDir"]);
}

REGISTPOSGEN(PosPointSource)